<template>
  <h2>{{flag}}</h2>
  <!-- { "a": 10, "b": 20 } -->
  <h2><button @click="fn">点击</button></h2>
</template>

<script>
export default {
  name:'Ceshi',
  props:{
    flag:{
      type:Object,
      default:()=>({})
    },
    error1:{
      type:Object,
      default:()=>({})
    }
  },
  setup(props){
    console.log(props.flag)// Proxy {}
    console.log(props.error1)// Proxy {a: 10, b: 20}
    function fn(){
      console.log(props.flag)
    }
    return {fn}
  }
}
</script>

<style>

</style>